package command;/** * Created by Administrator on 2018-10-24. * 简单遥控器 */public class SimpleRemoteControl {    Command slot;    public SimpleRemoteControl(){}    public void setCommand(Command command){        slot=command;    }    public void  bottonWasPressed(){        slot.execute();    }}